package org.tis.tools.abf.module.om.entity.vo;

import lombok.Data;
import org.tis.tools.abf.module.common.entity.enums.YON;
import org.tis.tools.abf.module.om.entity.OmPosition;
import org.tis.tools.abf.module.om.entity.enums.OmPositionStatus;
import org.tis.tools.abf.module.om.entity.enums.OmPositionType;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 工作组下岗位信息,岗位信息内添加上在岗员工数
 * Created by chenchao
 * Created on 2018/9/13 17:56
 */
@Data
public class OmGroupPositionDetail {

    private String guid;
    private String guidMapping;
    private String positionCode;
    private String positionName;
    private OmPositionType positionType;
    private OmPositionStatus positionStatus;
    private YON isleaf;
    private BigDecimal subCount;
    private BigDecimal positionLevel;
    private String positionSeq;
    private String guidParents;
    private Date startDate;
    private Date endDate;
    private int empNum;
    private String parentName;

    public OmGroupPositionDetail(){}

    public OmGroupPositionDetail(OmPosition omPosition, int empNum,String parentName){
        this.guid = omPosition.getGuid();
        this.guidMapping = omPosition.getGuidMapping();
        this.positionCode = omPosition.getPositionCode();
        this.positionName = omPosition.getPositionName();
        this.positionType = omPosition.getPositionType();
        this.positionStatus = omPosition.getPositionStatus();
        this.isleaf = omPosition.getIsleaf();
        this.subCount = omPosition.getSubCount();
        this.positionLevel = omPosition.getPositionLevel();
        this.positionSeq = omPosition.getPositionSeq();
        this.guidParents = omPosition.getGuidParents();
        this.startDate = omPosition.getStartDate();
        this.endDate = omPosition.getEndDate();
        this.empNum = empNum;
        this.parentName = parentName;
    }

}
